#include<unistd.h>
#include<stdlib.h>

int main(void)
{
	char buffer[128];
	int nread;

	nread = read(0, buffer, 128);
	if (-1 == nread)
	{
		write(2, "A read rror has occurred\n", 26);
	}

	if ((write(1, buffer, nread)) != nread)
	{
		write(2, "A write error had occurred\n", 27);
	}

	return 0;
}
